package com.zyh.work2

object TestDog {
  def main(args: Array[String]): Unit = {
    val dog: Dog = Dog("小黑", 12, 100.0)
    println(dog.say)
  }
}
case class Dog(name:String,age:Int,weight:Double){
  def say: String = name+age+weight
}